package priv.tuyou.system.po;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import priv.tuyou.po.Po;

/**
 * 后台系统菜单
 * @author：涂有
 * @date 2016年12月20日 下午11:51:04
 */
public class SystemMenu extends Po{

	/**
	 * id
	 */
	protected long id;
	
	/**
	 * 菜单名称
	 */
	@NotBlank
	@Length(min=1, max=32)
	protected String name;
	
	/**
	 * 菜单链接
	 */
	@NotBlank
	@Length(min=1, max=256)
	protected String url;
	
	/**
	 * 菜单图标
	 */
	@Length(min=1, max=18)
	protected String icon;
	
	/**
	 * 父菜单
	 */
	@Length(min=1, max=32)
	protected Long parent_id;
	
	/**
	 * 菜单的路径，从根节点到自身节点的id，用逗号隔开
	 */
	@NotBlank
	@Length(min=1, max=256)
	protected String path;
	
	/**
	 * 排序值
	 */
	protected int orderValue;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Long getParent_id() {
		return parent_id;
	}

	public void setParent_id(Long parent_id) {
		this.parent_id = parent_id;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public int getOrderValue() {
		return orderValue;
	}

	public void setOrderValue(int orderValue) {
		this.orderValue = orderValue;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}
}
